import request from '@/utils/request'

export const getNavList = params => request({
  url: '/api/admin/nav/getNavList',
  method: 'get',
  params
})

export const addNav = data => request({
  url: '/api/admin/nav/addNav',
  method: 'post',
  data
})

export const delNav = data => request({
  url: '/api/admin/nav/delNav',
  method: 'post',
  contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
  data
})

export const editNav = data => request({
  url: '/api/admin/nav/editNav',
  method: 'post',
  contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
  data
})
